import http from '@/utils/http'
export const getUserListApi = async (obj) => {
    const url = '/api/userlist'
    return http.get(url, {params:obj})
}

export const getUserTotalApi = async () => {
    const url = '/api/usercount'
    return http.get(url)
}

export const addUserApi = async (data) => {
    const url = '/api/useradd'
    return http.post(url, data)
}

export const getUserApi = async (uid) => {
    const url = '/api/userinfo'
    return http.get(url, {params:{uid:uid}})
}

export const delUserApi = async (data) => {
    const url = '/api/userdelete'
    return http.post(url, {uid:data})
}

